package com.bjsxt.mapper;

import com.bjsxt.pojo.Host;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface HostMapper {


    List<Host> selectMore(Host host);

    //添加主持人操作
    Integer insert(Host host);

    //修改权重操作
    @Update("update t_host set strong=#{param1} where hid=#{param2}")
    Integer updateStrong(Integer strong, Integer hid);

    //修改账号状态
    @Update("update t_host set status=#{param2} where hid =#{param1}")
    Integer updateStatus(Integer hid, String status);


}
